package com.baidu.noah.zeus.vo;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import org.apache.hadoop.io.Writable;

public class TaskProgressInfo  implements Writable{
	
	private long taskId;
	private byte taskStatus;
	
	public TaskProgressInfo() {}
	
	public TaskProgressInfo(long taskId, byte taskStatus) {
		this.taskId = taskId;
		this.taskStatus = taskStatus;
	}
	
	public long getTaskId() {
		return taskId;
	}

	public void setTaskId(long taskId) {
		this.taskId = taskId;
	}

	public byte getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(byte taskStatus) {
		this.taskStatus = taskStatus;
	}

	@Override
	public void readFields(DataInput in) throws IOException {
		this.taskId = in.readLong();
		this.taskStatus = in.readByte();
	}

	@Override
	public void write(DataOutput out) throws IOException {
		out.writeLong(this.taskId);
		out.writeByte(this.taskStatus);
	}

}
